import Vue from 'vue'
import App from './App.vue'
import router from './router'
import MyHeader from './components/MyHeader.vue'
import axios from 'axios'

Vue.config.productionTip = false;

//其它组件想使用头部页面时，放在new vue之前
Vue.component("my-header",MyHeader)

//在new vue之前设置axios的文件路径
axios.defaults.baseURL="/";
//把axios添加到vue原型对象中
Vue.prototype.axios=axios;



new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
